/*
    简单工厂模式 根据http请求初始化 requestProcessor 父类指针
*/

#ifndef REQPROCESSORFACTORY
#define REQPROCESSORFACTORY

#include "HTTPRelated.h"
#include "requestProcessor.h"
#include "getProcessor.h"
#include "postProcessor.h"


class reqProcessorFactory
{
public:
    reqProcessorFactory() = default;
    ~reqProcessorFactory() = default;
    reqProcessorFactory(reqProcessorFactory& factory) = delete;
    reqProcessorFactory(reqProcessorFactory&& factory) = delete;
    reqProcessorFactory& operator=(reqProcessorFactory& factory) = delete;
    reqProcessorFactory& operator=(reqProcessorFactory&& factory) = delete;

    static requestProcessor* produceHttpProcessor(llhttp_method method);
};


#endif